/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.dusin.teachassistdbservice.dao;


import java.util.List;
import java.util.Map;

/**
 *
 * @author tengyu
 */
public interface AttendanceDao {    

    List<Map<String, Object>> findAllAttendance4Student(int teachClassId, String studentNo);

    boolean doCreate(Object[] bean);

    boolean doDeleteByID(int id);

    //修改状态 
    boolean doSetStatus(int attendanceId, String studentNo, int status,String note);

    boolean doUpdate(Object[] bean);

    List<Map<String, Object>> findAll();

    List<Map<String, Object>> findAll(int start, int size);

    List<Map<String, Object>> findAllByTeachClassId(int teachClassId);

    Map<String, Object> findByNo(String no);

    boolean isScoreExisted(int attendanceId, String studentNo);

    //返回自增长ID
    long doCreateWithGetId(final Object[] bean);

    boolean doCreateAttendance(List<Object[]> bean);

    boolean doCreateAttendance(Object[] bean);

    boolean doDeleteDetail(int teachclassid, String studentNo);

    boolean doDeleteDetail(List<Object[]> beans);

    boolean doUpdateDetail(List<Object[]> beans);

    boolean doUpdateDetail(Object[] bean);

    /**
     * 查找某个课程的所有考勤记录
     */
    List<Map<String, Object>> findAllAttendanceDetail(int teachclassId);

    /**
     * 查找某个课程考勤次数
     */
    int findCount(int teachclassId);
    
   
            
}
